package org.amse.ys.sndeditor.model;

import java.io.*;

public interface ISoundFile {
	public static int LEFT_CHANEL = 1;
	public static int RIGHT_CHANEL = 2;

	public void saveToFile(String FileName) throws IOException;

	public void openFromFile(String fileName) throws IOException;

	public void saveTempoaryInformation() throws IOException;

	public void openTempoaryInformation() throws IOException;

	public boolean hasTempoaryInformation();

	public boolean hasTempoaryInformation(String file);

	public boolean stateIsSaved();

	public String getFileName();

	public boolean closeFile();

	public int giveLengthInPoints();

	public int giveBufferLengthInPoints();

	public int giveDepthInBits();

	public int giveIntegerIntensityAtPoint(int point, int channel);

	public int giveNumberOfChannels();

	public int givePointsPerSecond();

	public double toSeconds(int pointNumber);

	public int toPointNumber(double time);

	public boolean isOpened();

	// editing options
	public boolean copyToClipBoard(int startPoint, int endPoint);

	public boolean pasteFromClipBoard(int position);

	public boolean cut(int startPoint, int endPoint);
}
